<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>在线人数统计</title>
</head>
<body>
    <h1>当前在线人数：
        <span style="color:red;">
            <%= application.getAttribute("onlineCount") == null ? 0 : application.getAttribute("onlineCount") %>
        </span>
    </h1>
    <p>（每打开一个新浏览器或无痕窗口，人数会+1）</p>
</body>
</html>